package com.njtoyo.taxi.admin.mapper.secondary.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.secondary.entity.DingdingSendMsg;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.Date;

@Repository
@DS(Const.SECONDARY_DS)
public interface DingdingSendMsgMapper extends BaseMapper<DingdingSendMsg> {
    BigDecimal comIncome();

    BigDecimal comIncomeByDate(@Param("startDate") Date startDateTime, @Param("endDate") Date endDateTime);
}
